package com.chester.springbootseventeen.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author chester7cheng
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 7694929758960304279L;

    //+-------+-------------------------------------------------------+
    //| Table | Create Table                                          |
    //+-------+-------------------------------------------------------+
    //| user  | CREATE TABLE `user` (                                 |
    //|       |   `id` int(11) NOT NULL AUTO_INCREMENT,               |
    //|       |   `name` varchar(30) DEFAULT NULL COMMENT '姓名',     |
    //|       |   `age` int(11) DEFAULT NULL COMMENT '年龄',          |
    //|       |   `email` varchar(50) DEFAULT NULL COMMENT '邮箱',    |
    //|       |   PRIMARY KEY (`id`)                                  |
    //|       | ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 |
    //+-------+-------------------------------------------------------+


    private Integer id;
    private String name;
    private Integer age;
    private String email;

    private transient List<FamilyMember> familyMemberList;
}
